/**
 * 
 */
package com.wolfpire.proms.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wolfpire.system.common.UnCover;

/**
 * 任务反馈审核
 * @author lihd
 *
 */

@Entity
@Table(name = "t_feedback_audit")
public class FeedBackAudit implements Serializable {
	
	private static final long serialVersionUID = -967515571373025585L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, length = 16)
	private Long id; // 主键Id
	
	@Column(name = "remark", length = 4000)
	private String remark; //审核意见
	
	@Column(name = "feedback_id", length=16)
	private Long feedbackId; //任务反馈Id
	
	@Column(name = "create_user_id", length = 16)
	private Long createUserId;//审核人Id
	
	@Column(name = "create_user_name", length = 50)
	private String createUserName;//审核人名称
	
	@UnCover
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	@DateTimeFormat(pattern="yyyy-MM-dd")  
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8") 
	private Date createTime = new Date();//审核时间
	
	@Column(name = "status", length = 1)
	private Integer status;//状态 1：审核不通过，2：审核通过

	public FeedBackAudit() {
		super();
	}

	public FeedBackAudit(String remark, Long feedbackId,
			Long createUserId, String createUserName, Date createTime,
			Integer status) {
		super();
		this.remark = remark;
		this.feedbackId = feedbackId;
		this.createUserId = createUserId;
		this.createUserName = createUserName;
		this.createTime = createTime;
		this.status = status;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getFeedbackId() {
		return feedbackId;
	}

	public void setFeedbackId(Long feedbackId) {
		this.feedbackId = feedbackId;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	

}
